﻿<!DOCTYPE html>
<html>
	<head>
		<title>Cut/copy/paste data</title>
		<meta charset="utf-8" />
		<meta name="description" content="Cut/copy/paste data using the keyboard shortcuts" />
		<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
		<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
        <script type="text/javascript" src="../callback.js"></script>
        <script type="text/javascript" src="../search/js/page-search.js"></script>
	</head>
	<body>
        <div class="mainpart">
        <div class="search-field">
            <input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
        </div>
            <h1>Cut/copy/paste data</h1>
            <h3>Use basic clipboard operations</h3>
            <p>To cut, copy and paste data in the current spreadsheet make use of the right-click menu or use the corresponding icons of the <a href="https://www.onlyoffice.com/spreadsheet-editor.aspx" target="_blank" onclick="onhyperlinkclick(this)"><b>Spreadsheet Editor</b></a> available on any tab of the top toolbar,</p>
            <ul>
                <li><b>Cut</b> - select data and use the <b>Cut</b> option from the right-click menu, or the <b>Cut</b> <span class="icon icon-cut"></span> icon on the top toolbar to delete the selected data and send them to the computer clipboard memory. <span class="onlineDocumentFeatures">The cut data can be later inserted to another place in the same spreadsheet.</span></li>
                <li><b>Copy</b> - select data and either use the <b>Copy</b> <span class = "icon icon-copy"></span> icon at the top toolbar or right-click and select the <b>Copy</b> option from the menu to send the selected data to the computer clipboard memory. <span class="onlineDocumentFeatures">The copied data can be later inserted to another place in the same spreadsheet.</span></li>
                <li><b>Paste</b> - select a place and either use the <b>Paste</b> <span class = "icon icon-paste"></span> icon on the top toolbar or right-click and select the <b>Paste</b> option to insert the previously copied/cut data from the computer clipboard memory to the current cursor position. <span class="onlineDocumentFeatures">The data can be previously copied from the same spreadsheet.</span></li>
            </ul>
            <p><span class="onlineDocumentFeatures">In the <em>online version</em>, the following key combinations are only used to copy or paste data from/into another spreadsheet or some other program,</span> <span class="desktopDocumentFeatures">in the <em>desktop version</em>, both the corresponding buttons/menu options and key combinations can be used for any copy/paste operations:</span></p>
            <ul>
                <li><b>Ctrl+X</b> key combination for cutting (<b>Cmd+X</b> for macOS);</li>
                <li><b>Ctrl+C</b> key combination for copying (<b>Cmd+C</b> for macOS);</li>
                <li><b>Ctrl+V</b> key combination for pasting (<b>Cmd+V</b> for macOS).</li>
            </ul>
            <p class="note"><b>Note</b>: instead of cutting and pasting data within the same worksheet you can select the required cell/cell range, hover the mouse cursor over the selection border so that it turns into the Arrow <span class = "icon icon-arrow"></span> icon and drag and drop the selection to the necessary position.</p>
            <p>To enable / disable the automatic appearance of the <b>Paste Special</b> button after pasting, go to the <b>File</b> tab > <b>Advanced Settings</b> and check / uncheck the <b>Show the Paste Options button when the content is pasted</b> checkbox.</p>
            <h3>Use the Paste Special feature</h3>
            <p class="note"><b>Note</b>: For collaborative editing, the <b>Paste Special</b> feature is available in the <b>Strict</b> co-editing mode only.</p>
            <p>Once the copied data is pasted, the <b>Paste Special</b> <span class = "icon icon-pastespecialbutton"></span> button appears next to the lower right corner of the inserted cell/cell range. Click this button to select the necessary paste option or use the <em>Ctrl</em> key to open the <b>Paste Special</b> menu, then press the letter key given in the brackets next to the required option.</p>
            <p>When pasting a cell/cell range with formatted data, the following options are available:</p>
            <ul>
                <li><em>Paste (Ctrl then P)</em> - allows you to paste all the cell contents including data formatting. This option is selected by default.</li>
                <li>
                    The following options can be used if the copied data contains formulas:
                    <ul>
                        <li><em>Paste only formula (Ctrl then F)</em> - allows you to paste formulas without pasting the data formatting.</li>
                        <li><em>Formula + number format (Ctrl then O)</em> - allows you to paste formulas with the formatting applied to numbers.</li>
                        <li><em>Formula + all formatting (Ctrl then K)</em> - allows you to paste formulas with all the data formatting.</li>
                        <li><em>Formula without borders (Ctrl then B)</em> - allows you to paste formulas with all the data formatting except the cell borders.</li>
                        <li><em>Formula + column width (Ctrl then W)</em> - allows you to paste formulas with all the data formatting and set the source column`s width for the cell range.</li>
                        <li><em>Transpose (Ctrl then T)</em> - allows you to paste data switching them from columns to rows, or vice versa. This option is available for regular data ranges, but not for formatted tables.</li>
                    </ul>
                </li>
                <li>
                    The following options allow you to paste the result that the copied formula returns without pasting the formula itself:
                    <ul>
                        <li><em>Paste only value (Ctrl then +V)</em> - allows you to paste the formula results without pasting the data formatting.</li>
                        <li><em>Value + number format (Ctrl then A)</em> - allows to paste the formula results with the formatting applied to numbers.</li>
                        <li><em>Value + all formatting (Ctrl then E)</em> - allows you to paste the formula results with all the data formatting.</li>
                    </ul>
                </li>
                <li><em>Paste only formatting (Ctrl then R)</em> - allows you to paste the cell formatting only without pasting the cell contents.</li>
                <li><em>Paste link (Ctrl then N)</em> - allows you to paste the <a href="../UsageInstructions/AddExternalLinks.htm" onclick="onhyperlinkclick(this)">external link to a cell or range of cells</a> in another spreadsheet within the current portal (in the online editor) or in a local file (in the desktop editor).
                    <p><img alt="Paste options" src="../images/pastespecial.png" /></p>
                <ol>
                    <li>
                        <b>Paste</b>
                        <ul>
                            <li><em>Formulas</em> - allows you to paste formulas without pasting the data formatting.</li>
                            <li><em>Values</em> - allows you to paste the formula results without pasting the data formatting.</li>
                            <li><em>Formats</em> - allows you to apply the formatting of the copied area.</li>
                            <li><em>Comments</em> - allows you to add comments of the copied area.</li>
                            <li><em>Column widths</em> - allows you to set certal column widths of the copied area.</li>
                            <li><em>All except borders</em> - allows you to paste formulas, formula results with all its formatting except borders.</li>
                            <li><em>Formulas &#38; formatting</em> - allows you to paste formulas and apply formatting on them from the copied area.</li>
                            <li><em>Formulas &#38; column widths</em> - allows you to paste formulas and set certaln column widths of the copied area.</li>
                            <li><em>Formulas &#38; number formulas</em> - allows you to paste formulas and number formulas.</li>
                            <li><em>Values &#38; number formats</em> - allows you to paste formula results and apply the numbers formatting of the copied area.</li>
                            <li><em>Values &#38; formatting</em> - allows you to paste formula results and apply the formatting of the copied area.</li>
                        </ul>
                    </li>
                    <li>
                        <b>Operation</b>
                        <ul>
                            <li><em>Add</em> - allows you to automatically add numeric values in each inserted cell.</li>
                            <li><em>Subtract</em> - allows you to automatically subtract numeric values in each inserted cell.</li>
                            <li><em>Multiply</em> - allows you to automatically multiply numeric values in each inserted cell.</li>
                            <li><em>Divide</em> - allows you to automatically divide numeric values in each inserted cell.</li>
                        </ul>
                    </li>
                    <li><b>Transpose</b> - allows you to paste data switching them from columns to rows, or vice versa.</li>
                    <li><b>Skip blanks</b> - allows you to skip pasting empty cells and their formatting.</li>
                </ol>
                <p><img alt="Окно Специальная вставка" src="../images/pastespecial_window.png" /></p>
                </li>
            </ul>
            
            <p>When pasting the contents of a single cell or some text within autoshapes, the following options are available:</p>
            <ul>
                <li><em>Source formatting (Ctrl+K)</em> - allows you to keep the source formatting of the copied data.</li>
                <li><em>Destination formatting (Ctrl+M)</em> - allows you to apply the formatting that is already used for the cell/autoshape where the data are to be inserted to.</li>
            </ul>
            <h5 id="delimiteddata">Paste delimited text</h5>
            <p>When pasting the delimited text copied from a <b>.txt</b> file, the following options are available:</p>
            <p class="note">The delimited text can contain several records, and each record corresponds to a single table row. Each record can contain several text values separated with a delimiter (such as a comma, semicolon, colon, tab, space or other characters). The file should be saved as a plain text <b>.txt</b> file.</p>
            <ul>
                <li><em>Keep text only (Ctrl+T)</em> - allows you to paste text values into a single column where each cell contents corresponds to a row in the source text file.</li>
                <li><em>Use text import wizard</em> - allows you to open the <b>Text Import Wizard</b> which helps to easily split the text values into multiple columns where each text value separated by a delimiter will be placed into a separate cell.
                <p>When the <b>Text Import Wizard</b> window opens, select the text delimiter used in the delimited data from the <b>Delimiter</b> drop-down list. The data split into columns will be displayed in the <b>Preview</b> field below. If you are satisfied with the result, click the <b>OK</b> button.</p>
                </li>
            </ul>
            <p><img alt="Text import wizard" src="../images/textimportwizard.png" /></p>
            <p>If you pasted delimited data from a source that is not a plain text file (e.g. text copied from a web page etc.), or if you applied the <em>Keep text only</em> feature and now want to split the data from a single column into several columns, you can use the <b>Text to Columns</b> option. </p>
            <p>To split data into multiple columns:</p>
            <ol>
                <li>Select the necessary cell or column that contains data with delimiters.</li>
                <li>Switch to the <b>Data</b> tab.</li>
                <li>Click the <b>Text to columns</b> button on the top toolbar. The <b>Text to Columns Wizard</b> opens.</li>
                <li>In the <b>Delimiter</b> drop-down list, select the delimiter used in the delimited data.</li>
                <li>Click the <b>Advanced</b> button to open the <b>Advanced Settings</b> window in which you can specify the <b>Decimal</b> and <b>Thousands</b> separators.
                <p><img alt="Separator settings window" src="../images/separator.png" /></p></li>
                <li>Preview the result in the field below and click <b>OK</b>.</li>
            </ol>
            <p>After that, each text value separated by the delimiter will be located in a separate cell.</p>
            <p class="note">If there is some data in the cells to the right of the column you want to split, the data will be overwritten.</p>
            <h3>Use the Auto Fill option</h3>
            <p>To quickly fill multiple cells with the same data use the <b>Auto Fill</b> option:</p>
            <ol>
                <li>select a cell/cell range containing the required data,</li>
                <li>move the mouse cursor over the fill handle in the right lower corner of the cell. The cursor will turn into the black cross:
                <p><div class = "big big-autofill"></div></p>
                </li>
                <li>drag the handle over the adjacent cells to fill them with the selected data.</li>
            </ol>
            <p class="note"><b>Note</b>: if you need to create a series of numbers (such as 1, 2, 3, 4...; 2, 4, 6, 8... etc.) or dates, you can enter at least two starting values and quickly extend the series selecting these cells and dragging the fill handle. For a series of days of the week or months, enter the initial value and drag the fill handle. </p>
            <h3>Fill cells in the column with text values</h3>
            <p>If a column in your spreadsheet contains some text values, you can easily replace any value within this column or fill the next blank cell selecting one of already existing text values.</p>
            <p>Right-click the necessary cell and choose the <b>Select from drop-down list</b> option in the contextual menu.</p>
            <p><img alt="Select from drop-down list" src="../images/selectfromlist.png" /></p>
            <p>Select one of the available text values to replace the current one or fill an empty cell.</p>
            
            <h3 id="series">Fill cells using the Series tool</h3>
            <ol>
                <li>Select a cell/cell range containing the initial data and some empty cells in the necessary direction. Click the <b>Fill</b> icon on the <b>Home</b> tab of the top toolbar and choose the <b>Series</b> option.
                <p>You can also use the <b>Down</b>, <b>Right</b>, <b>Up</b>, <b>Left</b> options to fill the selected empty cells.</p>
                    <p><img alt="Series - menu" src="../images/series_menu.png" /></p>         
                <p>There is another way to access the <b>Series</b> window. You can select the initial data, move the mouse cursor over the fill handle in the right lower corner of the cell, click and hold the <b>right mouse button</b> on the fill handle, then drag down, up, right, or left and release the right mouse button - the context menu appears with the <b>Series</b> option.</p>
                <p>You can also use the following options to fill the selected empty cells: <b>Copy cells</b> is used to fill cells with the same values, <b>Fill series</b> is used to fill cells with a series using the default step value, <b>Fill days</b> is used to fill cells with a series of dates, <b>Linear trend</b> is available if more than one starting value is selected, is used to add the default step value to the starting value and then to each subsequent value, <b>Growth trend</b> is available if more than one starting value is selected, is used to multiply the starting value by the default step value.</p>
                <p><img alt="Series - context menu" src="../images/series_context_menu.png" /></p>
                </li>
                <li>In the <b>Series</b> dialog window, select the necessary options and click <b>OK</b>:
                    <p><img alt="Series - window" src="../images/series_window.png" /></p>
                <ul>
                    <li><b>Series in</b>: <em>Rows</em>, <em>Columns</em> - select the direction to fill cells.</li>
                    <li><b>Type</b>: <em>Linear</em> is used to add the step value to the starting value and then to each subsequent value, <em>Growth</em> is used to multiply the starting value by the step value, <em>Date</em> is used to fill cells with a series of dates, <em>AutoFill</em> is used to fill cells with data based on other cells.</li>
                    <li><b>Date unit</b>: <em>Day</em>, <em>Weekday</em>, <em>Month</em>, <em>Year</em> - select the date unit you want to increase the series by.</li>
                    <li><b>Trend</b> - check this box if there is more than one starting value in the series.</li>
                    <li><b>Step value</b> - select the numerical value you want to increase the series by. By default, it is set to 1.</li>
                    <li><b>Stop value</b> - specify the last value in the series.</li>
                </ul>
                </li>
            </ol>
        </div>
	</body>
</html>
